<?php
/**
 * The Header template for our theme
 *
 * Displays all of the <head> section and everything up till <div id="main">
 */	
$post_code = sfc_check_post(0);
if($post_code == 10) {
	header('Location: '.$_SERVER['REQUEST_URI']);
}
?>

<!DOCTYPE html>
<html>
<head profile="http://gmpg.org/xfn/11">
	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	
	
	<title>
		<?php wp_title('-',true,'left'); ?>
	</title>
	
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />	
	
	<!-- jQuery -->
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
	
	<!-- jQuery Shuffle -->
	<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.shuffle.modernizr.js"></script>
	
	
	
	<?php wp_head(); ?>
	<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" />
	
	<style>
		@font-face {
		    font-family: "Rock Salt";
		    src: url(<?php echo get_template_directory_uri(); ?>/fonts/RockSalt.ttf) format("truetype");
		}
		@font-face {
		    font-family: "Boogaloo";
		    src: url(<?php echo get_template_directory_uri(); ?>/fonts/Boogaloo-Regular.otf) format("opentype");
		}
		@font-face {
		    font-family: "Arvo";
		    font-style: serif;
		    src: url(<?php echo get_template_directory_uri(); ?>/fonts/Arvo-Regular.ttf) format("truetype");
		}
	</style>

</head>
<body>

<?php 


if($post_code == 11) {
	// duplicate name
	?>
	<div id="form_post_message">
		<div id="form_post_message_inner" class="container12">
			The name you entered has already been taken.  Please enter another name.
		</div>
	</div>
	<?php 
} elseif($post_code == 12) {
	// error
	?>
	<div id="form_post_message">
		<div id="form_post_message_inner" class="container12">
			There was an error creating your account.  Please try again.
		</div>
	</div>
	<?php 
} 





?>


		
		
		
		
		
		
		
		
		
		


<!--HEADER START-->

<?php if( get_option( 'students_for_change' )){ ?>

	<?php get_template_part(''.$head = of_get_option('head_select', 'header').''); ?>
	
<?php }else{ ?>

	<?php get_template_part('head'); ?>
	
<?php } ?> 
        
</body>
</html>